import request from '@/utils/request'

// 查询经纪人提现记录列表
export function listBrokerPayoutDetail(query) {
  return request({
    url: '/brokerPayoutDetail/brokerPayoutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询经纪人提现记录详细
export function getBrokerPayoutDetail(id) {
  return request({
    url: '/brokerPayoutDetail/brokerPayoutDetail/' + id,
    method: 'get'
  })
}

// 新增经纪人提现记录
export function addBrokerPayoutDetail(data) {
  return request({
    url: '/brokerPayoutDetail/brokerPayoutDetail',
    method: 'post',
    data: data
  })
}

// 修改经纪人提现记录
export function updateBrokerPayoutDetail(data) {
  return request({
    url: '/brokerPayoutDetail/brokerPayoutDetail',
    method: 'put',
    data: data
  })
}

// 删除经纪人提现记录
export function delBrokerPayoutDetail(id) {
  return request({
    url: '/brokerPayoutDetail/brokerPayoutDetail/' + id,
    method: 'delete'
  })
}
